/* 初始化样式 */
body { 
    max-width: 540px;
    min-width: 320px;
    margin: 0 auto;
    font: normal 14px/1.5 Tahoma,"Lucida Grande",Verdana," MicrosoftYahei",STXihei,hei;
    color: #000;
    background: #f2f2f2;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent; 
}
ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}
a {
    text-decoration: none;
    color: #222;
}
h1,h2,h3,h4,h5,h6,p {
    margin: 0;
    padding: 0;
}
/* 特殊样式 */
/*点击高亮我们需要清除清除 设置为transparent 完成透明*/
*{
    -webkit-tap-highlight-color: transparent;
}
/*在移动端浏览器默认的外观在iOS上加上这个属性才能给按钮和输入框自定义样式*/
input{
    -webkit-appearance: none;
}
/*禁用长按页面时的弹出菜单*/
img,a { 
    -webkit-touch-callout: none; 
}


/* 顶部search-index部分 */
/* 大结构flex布局、子元素侧轴居中显示、宽高、CSS3盒子，边距 */
.search-index {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    align-items: center;
    width: 100%;
    height: 44px;
    box-sizing: border-box;
    padding-left: 12px;
    z-index: 10;
}
/* 搜索栏flex布局、子元素侧轴居中、高度、占满剩余空间、CSS3盒子、边距、圆角、背景色 */
.search-index .search {
    display: flex;
    align-items: center;
    height: 28px;
    flex: 1;
    box-sizing: border-box;
    padding: 2px 5px;
    border-radius: 14px;
    background: #fff;
}
/* 搜索栏文字相对定位、CSS3盒子、高度、边距、文字属性 */
.search-index .search span {
    position: relative;
    box-sizing: border-box;
    height: 18px;
    padding-left: 35px;
    font-size: 15px;
    line-height: 18px;
    color: #666;
}
/* 伪元素制作小图标、转块、绝对定位、宽高、背景 */
.search-index .search span::after {
    display: block;
    position: absolute;
    top: 2px;
    left: 11px;
    content: "";
    width: 14px;
    height: 14px;
    background: url(../images/sprite.png) no-repeat 0 0;
    background-size: 21px 123px;
}
/* 登录模块flex布局、水平垂直居中、宽高、边距、CSS3盒子 */
.search-index .login {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 51px;
    height: 44px;
    box-sizing: border-box;
    padding-right: 5px;
}
/* 登录图标使用伪元素、转块、宽高、背景、调整顺序 */
.search-index .login::after {
    display: block;
    content: "";
    width: 22px;
    height: 22px;
    background: url(../images/sprite.png) no-repeat 0 -36px;
    background-size: 21px 123px;
    order: -1;
}
/* 登录文字属性 */
.search-index .login span {
    font-size: 12px;
    line-height: 12px;
    color: #FFF;
}


/* focus区域 */
/* 大结构定位、宽度、左右增加25%边距、下方圆角、左移padding，超出隐藏控制高度 */
.focus {
    position: relative;
    width: 100%;
    padding: 0 25%;
    border-bottom-left-radius: 100%;
    border-bottom-right-radius: 100%;
    transform: translate(-16.666%);
    overflow: hidden;
}
/* 伪元素添加渐变遮挡。定位、宽高、背景渐变 */
.focus::after {
    position: absolute;
    top: 0;
    left: 0;
    content: "";
    width: 100%;
    height: 60px;
    background-image: linear-gradient(to bottom, rgba(0, 0 ,0 ,0.4), rgba(0, 0 , 0, 0));
}
/* a标签转块 */
.focus a {
    display: block;
}
/* img标签宽度、转块 */
.focus a img {
    display: block;
    width: 100%;
}



/* local-nav区域 */
/* 大结构flex布局、定位压盖在上面、高度、CSS3盒子、边距、背景 */
.local-nav {
    display: flex;
    align-items: center;
    position: relative;
    height: 76px;
    box-sizing: border-box;
    margin: -52px 12px 10px;
    padding: 8px 0 4px;
    border-radius: 8px;
    background: #ffffff;
}
/* li标签平分剩余空间 */
.local-nav li {
    flex: 1;
}
/* li下面的a标签flex布局、纵向主轴、侧轴居中 */
.local-nav li a {
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* 图标宽高、背景 */
.local-nav li a i {
    width: 40px;
    height: 40px;
    background: url(../images/localnav_bg.png) no-repeat 0 0;
    background-size: 40px auto;
}
/* 剩下4个背景 */
.local-nav li:nth-child(2) a i {
    background: url(../images/localnav_bg.png) no-repeat 0 -40px;
    background-size: 40px auto;
}
.local-nav li:nth-child(3) a i {
    background: url(../images/localnav_bg.png) no-repeat 0 -80px;
    background-size: 40px auto;
}
.local-nav li:nth-child(4) a i {
    background: url(../images/localnav_bg.png) no-repeat 0 -120px;
    background-size: 40px auto;
}
.local-nav li:nth-child(5) a i {
    background: url(../images/localnav_bg.png) no-repeat 0 -160px;
    background-size: 40px auto;
}
/* 文字字号 */
.local-nav li a span {
    font-size: 12px;
}


/* nav区域 */
/* 下面是公共样式 */
/* 大结构外边距、圆角、溢出 */
.nav {
    margin: 0 12px;
    border-radius: 8px;
    overflow: hidden;
}
/* 每行flex布局、下边框、背景色 */
.nav .row {
    display: flex;
    border-bottom: 1px solid #fff;
    background-image: linear-gradient(to right, #3478e8, #45ade8);
}
/* 每个a标签转块、边距、左边框、文字属性 */
.nav .row a {
    display: block;
    padding: 25.6px 0;
    border-left: 1px solid #fff;
    color: #fff;
    text-align: center;
}
/* 每行第一个a标签背景图、边距、边框、份数 */
.nav .row a:nth-child(1) {
    padding-left: 12px;
    border-left: 0;
    background: url(../images/flight.png) no-repeat right bottom;
    background-size: auto 34px;
    flex: 1.35;
    text-align: left;
}
/* 每行第二个背景图 */
.nav .row a:nth-child(2) {
    background: url(../images/train.png) no-repeat left bottom;
    background-size: 37px auto;
}
/* 每块文字转块、字号、限制高 */
.nav .row a span {
    display: block;
    height: 14px;
    font-size: 14px;
    line-height: 14px;
}
/* 每行除第一个外1份 */
.nav .row a:nth-child(n+2) {
    flex: 1;
}
/* 第三行去除边框 */
.nav .row:nth-child(3) {
    border-bottom: 0;
}
/* 下面设置不同的样式 */
/* 第一行背景 */
.nav .row:nth-child(1) {
    background-image: linear-gradient(to right, #f04045, #f2713f 56%);
}
.nav .row:nth-child(1) a:nth-child(1) {
    background: url(../images/hotel.png) no-repeat right bottom;
    background-size: 73px auto;
}
.nav .row:nth-child(1) a:nth-child(2) {
    background: url(../images/minsu.png) no-repeat left bottom;
    background-size: 37px auto;
}
.nav .row:nth-child(1) a:nth-child(3) {
    flex: 2;
    background-image: url(../images/hot_sale.png), linear-gradient(to right, #f9bc49, #fada52);
    background-size: 161px auto;
    color: #904313;
}
/* 第三行背景 */
.nav .row:nth-child(3) {
    background-image: linear-gradient(to right, #35b899, #5ed146);
}
.nav .row:nth-child(3) a:nth-child(1) {
    background: url(../images/travel.png) no-repeat right bottom;
    background-size: auto 47px;
}
.nav .row:nth-child(3) a:nth-child(2) {
    background: url(../images/dingzhi.png) no-repeat left bottom;
    background-size: 61px auto;
}


/* subnav-entry区域 */
/* 大结构边距、flex布局、换行 */
.subnav-entry {
    margin: 0 12px 12px;
    display: flex;
    flex-wrap: wrap;
}
/* 每个块宽度 */
.subnav-entry li {
    width: 20%;
}
/* 每块flex布局、主轴纵向、水平居中、宽度、文字属性 */
.subnav-entry li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    font-size: 12px;
    line-height: 12px;
}
/* 小图标转块、宽高、背景 */
.subnav-entry li i {
    display: block;
    width: 28px;
    height: 28px;
    margin: 10px 0 5px;
    background: url(../images/subnav-bg.png) no-repeat 3px -272px; 
    background-size: 24px auto;
}



/* sales-box区域 */
/* 大结构宽度、上边框 */
.sales-box {
    width: 100%;
    border-top: 1px solid #cecece;
}
/* 顶部flex布局、居中、两端对齐、高、边框、文字颜色 */
.sales-box .sales-bh {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 45px;
    padding: 0 8px 1px;
    border-bottom: 1px solid #d3d3d3;
    background: #fff;
}
/* 左侧图片 */
.sales-box .sales-bh i {
    position: relative;
    display: block;
    width: 79px;
    height: 15px;
    background: url(../images/hot.png) no-repeat 0 -20px;
    background-size: 79px auto;
}
/* 广告标志 */
.sales-box .sales-bh i::after {
    display: block;
    position: absolute;
    right: -40px;
    content: "";
    width: 36px;
    height: 15px;
    background: url(../images/icon-gg@2x.png) no-repeat 0 0;
    background-size: 36px auto;
}
/* 右侧更多福利 */
.sales-box .sales-bh span {
    display: block;
    position: relative;
    padding: 0 18px 0 12px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 20px;
    background-image: linear-gradient(to right, #d23e58, #d540b7);
    color: #fff;
}
/* 箭头 */
.sales-box .sales-bh span::before {
    position: absolute;
    right: 10px;
    top: 5px;
    content: "";
    width: 7px;
    height: 7px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
}
/* 底部 */
.sales-box .sales-bd {
    display: flex;
    width: 100%;
}
/* a标签 */
.sales-box .sales-bd a {
    display: block;
    position: relative;
    width: 50%;
    border-top: 2px solid #f2f2f2;
    border-bottom: 1px solid #f2f2f2;
}
/* 第一个a边框 */
.sales-box .sales-bd a:nth-child(1) {
    border-right: 1px solid #fafafa;
}
/* 图片宽度 */
.sales-box .sales-bd a img {
    display: block;
    width: 100%;
}
/* 广告标签 */
.sales-box .sales-bd a::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 26px;
    border-top-right-radius: 4px;
    content: "广告 ";
    font-size: 12px;
    line-height: 14px;
    background: #b3b3b3;
    color: #fff;
}



/* footer区域 */
/* 大结构 */
.footer {
    width: 100%;
    padding: 1px 0 5px;
}
/* 顶部 */
.footer .footer-top {
    display: flex;
    width: 100%;
    padding-top: 1px;
    margin-bottom: 5px;
    background: #f9f9fb;
}
/* a标签 */
.footer .footer-top a {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    padding: 10px 0;
    font-size: 12px;
}
/* 图标 */
.footer .footer-top a i {
    display: block;
    width: 20px;
    height: 20px;
    background: url(../images/phone.png) 0 0;
    background-size: 20px auto;
}

.footer .footer-top a:nth-child(2) i {
    background: url(../images/xiazai.png) 0 0;
    background-size: 20px auto;
}
.footer .footer-top a:nth-child(3) i {
    background: url(../images/wode.png) 0 0;
    background-size: 20px auto;
}
/* 底部 */
.footer .footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
/* 每一行 */
.footer .footer-bottom p {
    display: flex;
    align-items: center;
    color: #606060;
    font-size: 12px;
    line-height: 24px;
}
.footer .footer-bottom p:nth-child(2) {
    color: #909090;
}
/* 分割线 */
.footer .footer-bottom p i {
    width: 1px;
    height: 12px;
    margin: 0 6px;
    background: #8e8e8e;
}